import { formProps, type FormItemProps, type InputProps, ElSelect } from 'element-plus';
import { IObject } from '../dynamic-table/helper';

export type modelFormItemsProps = Partial<FormItemProps> &
  Partial<InputProps> & {
    slotName?: string;
    type?: 'select' | 'input';
    options?: {
      label: string;
      value: string;
    }[];
  };

export const modelFormProps = {
  formItems: {
    type: Array as () => modelFormItemsProps[],
    default: () => []
  },
  ...formProps
};
